package com.yidiandao.business.data.model;

import com.yidiandao.business.data.recyclertype.Article;
import com.yidiandao.business.data.recyclertype.ArticleComment;
import com.yidiandao.business.data.response.EnrollResponse;
import com.yidiandao.business.data.response.QueryEnrollPayStateResponse;

import java.util.List;

/**
 * 发现评论 Model
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/4/13 0013 15:37
 */
public interface IArticleModel {

    interface OnLoadResultListener<T> {

        void onSuccess(T t, boolean emptyData, boolean hasMore);

        void onFailed(String message);

    }

    void loadComments(String pagerTag, boolean isRefreshing, String articleId, OnLoadResultListener<List<ArticleComment>> listener);

    void likeComment(String tag, String commentId, OnLoadResultListener listener);

    void submitComment(String pagerTag, String articleId, String text, OnLoadResultListener listener);

    void likeArticle(String tag, String articleId, OnLoadResultListener listener);

    void getArticleInfo(String tag, String articleId, OnLoadResultListener<Article> listener);

    void enroll(String tag, String enrollId, String userName, String phoneNumber, int personNumber, OnLoadResultListener<EnrollResponse.Data> listener);

    void getEnrollPayState(String tag, String recId, OnLoadResultListener<QueryEnrollPayStateResponse.Data> listener);

}
